package com.tensquare.usercrawler.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.tensquare.dto.Result;
import com.tensquare.dto.User;

/**
 * 远程调用的接口
 * @author Johnny.Chen
 *
 */
@FeignClient(value="tensquare-user",fallback=UserClientImpl.class)
public interface UserClient {
	
	@RequestMapping(value="/user",method=RequestMethod.POST)
	public Result add(@RequestBody User user);
	
}
